package com.dragonfly.shutter.DAOs;

import com.dragonfly.shutter.beans.Admin;

/**
 * admin dao
 * @author 黄挺
 *
 */
public interface AdminDAO {
	/**
	 * 向数据库中插入一个admin
	 * @param admin admin bean 
	 * @return 新记录主键
	 */
	public Integer insertAdmin(Admin admin);
	
	/**
	 * 根据管理员email和password来查询admin
	 * @param admin admin bean
	 * @return admin bean
	 */
	public Admin selectAdminByEmailAndPassword(Admin admin);
	
	/**
	 * 用管理员的ID来查找相关信息
	 * @param admin
	 * @return
	 */
	public Admin selectAdminByID(Admin admin);
}
